package astnode;
import java.util.ArrayList;
public class LoopStmtNode extends ASTNode implements StmtNode{
	
	public LoopStmtNode(int lineNum) {
		super(lineNum);
	}

	private ArrayList<StmtNode> statements = new ArrayList<StmtNode>();
	private int back=0;
	private int exit=0;

	public void addStatement( StmtNode node ){
		statements.add(node);
	}
	
	public int getback(){
		return back;
	}
	
	public int getexit(){
		return exit;
	}
	
	public  ArrayList<StmtNode> getStatements(){
		return statements;
	}
	
	public void setback(int temp){
	     back = temp;
	}
	
	public void setexit(int temp){
	     exit = temp;
	}
	
}
